/**
 * Author@ Cheng Feitian
 * Date: 2020-3-21
 * Description: 引用的基本语法:"数据类型 &别名 = 原名"
 */

#include <algorithm>
#include <iostream>
#include <string>

using namespace std;
const int maxn = 1024;

int main() {

    int a = 10;
    int &b = a;

    cout <<"a = " << a << endl;
    cout <<"b = " << b << endl;

    b = 100;
    cout <<"a = " << a << endl;
    cout <<"a = " << a << endl;
    return 0;
}
